using System;
using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace eTMS.Commons
{
	/// <summary>
	/// Summary description for Win32.
	/// </summary>
	public class Win32
	{
		public Win32()
		{
		}   

	    public const String MENU_CLASS   = "#32768";
	    public const int WM_NCCALCSIZE   = 0x83;
	    public const int WM_WINDOWPOSCHANGING   = 0x46;
	    public const int WM_PAINT   = 0xF;
	    public const int WM_CREATE   = 1;
	    public const int WM_NCCREATE   = 0x81;
	    public const int WM_NCPAINT   = 133;
	    public const int WM_PRINT   = 791;
	    public const int WM_DESTROY  = 0x2;
	    public const int WM_SHOWWINDOW  = 0x18;
	    public const int WM_SHARED_MENU  = 482;
	    public const int HC_ACTION  = 0;
	    public const int WH_CALLWNDPROC = 4;
	    public const int GWL_WNDPROC = -4;
        public const int WM_KEYDOWN = 0x0100;
        public const int WM_KEYUP = 0x0101;
        public const int WM_SYSKEYDOWN = 0x0104;
		[DllImport("user32")]
		public extern static Keys GetAsyncKeyState (Keys vKey);
		[DllImport("user32")]
		public extern static Keys GetKeyState(Keys nVirtKey );

        [DllImport("shell32.dll", CallingConvention = CallingConvention.Cdecl)]
        public static extern IntPtr ExtractIcon(IntPtr hIcon, string lpszExeFileName, int nIconIndex);
        [DllImport("user32", CallingConvention = CallingConvention.Cdecl)]
        public static extern bool DestroyIcon(IntPtr hIcon);

        [DllImport("User32.dll")]
        public static extern IntPtr GetWindowDC(IntPtr hWnd);


        [DllImport("User32.dll")]
        public static extern int ReleaseDC(IntPtr hWnd, IntPtr hDC); 
	

	}
}
